# 编译 dog 动态库
add_library(ptr_dog SHARED dog.cpp)
set_target_properties(ptr_dog PROPERTIES
    POSITION_INDEPENDENT_CODE ON
    OUTPUT_NAME "dog"
    PREFIX ""
)

add_library(ptr_cat SHARED cat.cpp)
set_target_properties(ptr_cat PROPERTIES
    POSITION_INDEPENDENT_CODE ON
    OUTPUT_NAME "cat"
    PREFIX ""
)

# 编译 zoo 服务端
# add_executable(ptr_zoo zoo.cpp)
# target_link_libraries(ptr_zoo dl pthread)

# 编译 music_zoo 服务端
add_executable(music_zoo music_zoo.cpp)
target_link_libraries(music_zoo dl pthread)